package com.mti.epivisitemobile
{
	import com.mti.epivisitemobile.controller.StartupCommand;
	
	import org.puremvc.as3.patterns.facade.Facade;
	
	public class AppFacade extends Facade
	{
		public static function getInstance():AppFacade
		{
			if (instance == null)
				instance = new AppFacade();
			return instance as AppFacade;
		}
		
		public function AppFacade()
		{
			super();
		}
		
		public function startup(app:EpiVisiteMobile):void
		{
			sendNotification(Constants.APP_STARTUP, app);
		}
		
		override protected function initializeController():void
		{
			super.initializeController();
			registerCommand(Constants.APP_STARTUP, StartupCommand);
		}
		
		public var appReady:Boolean = false;
	}
}